package com.github.byakkili.bim.autoconfigure;

import com.github.byakkili.bim.core.Constants;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Guannian Li
 */
@Setter
@Getter
@ConfigurationProperties(prefix = "bim")
public class BimProperties {
    /**
     * 绑定IP
     */
    private String bindIp = Constants.LOCALHOST;
    /**
     * 绑定端口
     */
    private int bindPort = 9000;
    /**
     * 超时(秒)
     */
    private int idleTimeout = 60;
    /**
     * TCP Keep Alive
     */
    private boolean keepAlive = false;
    /**
     * IO线程数
     */
    private int ioThread = Constants.DEFAULT_IO_THREADS;
}
